package com.ktwlsoft.archivemanage.payload.study.subject;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class StudySubjectPayload {

    private Long id;

    private String title;

    private String tag;

    private Integer classCount;

    private String state;

    private String publisherName;

    private Date publishAt;

    private String mainImgUrl;

    private List<SubjectClassPayload> classes = new ArrayList<>();

    public void setClass_count(Integer classCount) {
        this.classCount = classCount;
    }

    public void setPublish_at(Date publishAt) {
        this.publishAt = publishAt;
    }

    public void setMain_img_url(String mainImgUrl) {
        this.mainImgUrl = mainImgUrl;
    }

    public void setPublisher_name(String publisherName){this.publisherName = publisherName;}


    public StudySubjectPayload() {
    }

    public StudySubjectPayload(Long id, String title, String tag, Integer classCount, String state, String publisherName, Date publishAt, String mainImgUrl) {
        this.id = id;
        this.title = title;
        this.tag = tag;
        this.classCount = classCount;
        this.state = state;
        this.publisherName = publisherName;
        this.publishAt = publishAt;
        this.mainImgUrl = mainImgUrl;
    }
}
